import { Alova } from '@/utils/http/alova/index';

/**
 * 加载user选择器数据
 * @param params
 */
export const getUsers = (params: any) =>
  Alova.Post<{ data; total: number }>('/user/load/users', {
    params,
  });

export const getUserInfo = (params: any) =>
  Alova.Post<{ data; total: number }>('/user/userInfo/gets', {
    params,
  });

export const getUserDetail = (params: any) =>
  Alova.Post<{ data; total: number }>('/user/userInfo/get', {
    params,
  });
